package org.wcms.surrounded.persistence;

import com.google.inject.Inject;
import com.google.inject.Provider;
import com.googlecode.objectify.Objectify;
import com.googlecode.objectify.ObjectifyFactory;

public class ObjectifyProvider implements Provider<Objectify> {

    private final ObjectifyFactory factory;
    
    @Inject
    public ObjectifyProvider(ObjectifyFactory factory) {
        this.factory = factory;
    }
    
    @Override
    public Objectify get() {
        return factory.begin();
    }

}
